﻿<%@ Page Language="C#" MasterPageFile="~/news/MasterPage_News.master" AutoEventWireup="true"
    CodeFile="newslist.aspx.cs" Inherits="news_newslist" Title="IT110：不良信息举报与检索平台 - 资讯信息分类列表 - By ECountry.Ltd." %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Search" runat="Server">
    <%--<DIV id=ctl00_cphBody_divError></DIV>
    --%>
    <%--<DIV class=posts id=ctl00_cphBody_PostList1_posts>
    --%>
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="id" DataSourceID="ObjectDataSource_News_List">
        <LayoutTemplate>
            <div id="itemPlaceholderContainer" runat="server" style="">
                <span id="itemPlaceholder" runat="server" />
            </div>
            <div style="">
                <asp:DataPager ID="DataPager1" runat="server">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True" ShowNextPageButton="False"
                            ShowPreviousPageButton="False" />
                        <asp:NumericPagerField />
                        <asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="True" ShowNextPageButton="False"
                            ShowPreviousPageButton="False" />
                    </Fields>
                </asp:DataPager>
            </div>
        </LayoutTemplate>
        <EmptyDataTemplate>
            <span>未返回数据。</span>
        </EmptyDataTemplate>
        <ItemTemplate>
            <div class="post xfolkentry" id="post0">
                <h1>
                    <a class="taggedlink" href="newsdetail.aspx?id=<%# Eval("id") %>">
                        <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' /></a></h1>
                <span class="author">by <a href="#">
                    <asp:Label ID="usernameLabel" runat="server" Text='<%# Eval("username") %>' /></a></span>
                <span class="pubDate">
                    <%# Eval("time") %></span>
                <div class="text">
                    <!-- google_ad_section_start -->
                    <asp:Label ID="newscontentLabel" runat="server" Text='<%# Eval("newscontent")%>' /><!-- google_ad_section_end --><%-- .ToString().Length >240?(Eval("newscontent").ToString().Substring(0,240)+"..."+"<a href=newsdetail.aspx?id="+Eval("id")+">[详细]</a>"):Eval("newscontent") --%>
                </div>
                <div class="bottom">
                    <div class="ratingcontainer" style="visibility: hidden">
                        6e4ec085-df8a-4ba4-a871-a7561aaaf8b4|4|2.3</div>
                    <!-- 实现评分的功能模块-->
                    <p class="tags">
                        标签:
                    </p>
                    <p class="categories">
                        <a href="newslist.aspx?type=<%# Eval("subclassid") %>">
                            <%# Eval("subclasstitle") %></a></p>
                </div>
                <div class="footer">
                    <a title='<%# Eval("title") %>' href="newsdetail.aspx?id=<%# Eval("id") %>" rel="bookmark">
                        永久链接</a>
                    <%--|
 <A href="http://www.soudianhua.com/blog/post/baidu-1000.aspx#comment" rel=nofollow>评论 (0)</A> --%>
                </div>
            </div>
        </ItemTemplate>
    </asp:ListView>
    <%--    </DIV>
    --%>
    <asp:ObjectDataSource ID="ObjectDataSource_News_List" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="Get_Data_By_TypeId_and_Order_By_SortandTime" TypeName="DataSet_fp_news_DyhTableAdapters.Dyh_NewsTableAdapter">
        <SelectParameters>
            <asp:QueryStringParameter Name="type" QueryStringField="type" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
